package com.beidu.lottery.call.entity.mq;

import com.beidu.lottery.call.common.BaseContextHandler;
import lombok.Data;

/**
 * 活动基础DTO
 *
 * @author 北渡
 */
@Data
public class ActivityBaseDTO {

    /**
     * 消息ID
     */
    private String messageId;

    /**
     * 租户编码
     */
    private String tenantCode;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 组装域中的用户信息
     *
     * @param messageId 消息ID
     */
    public void setBaseDTO(String messageId) {
        this.messageId = messageId;
        this.tenantCode = BaseContextHandler.getTenant();
        this.userId = BaseContextHandler.getUserId();
    }

}
